//
//  DynamicEditViewCell.m
//  QuanZiChat
//
//  Created by 张洪林 on 15/11/27.
//  Copyright © 2015年 ZhongHongLin. All rights reserved.
//

#import "DynamicEditViewCell.h"

@interface DynamicEditViewCell ()

@end
@implementation DynamicEditViewCell
//初始化方法


-(void)setImage:(UIImage *)image{
    if (_image != image) {
        _image = nil;
        _image = image;
        self.imageView.image = image;
    }
}

-(UIImageView *)imageView{
    if (!_imageView) {
        _imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        [self.contentView addSubview:_imageView];
    }
    return _imageView;
}
- (void)prepareForReuse {
    [super prepareForReuse];
    self.imageView.image = nil;
    self.indexPath = nil;
}

@end
